package com.liyang.springcloud.service;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;

/**
 * @description: openFeign 接口
 * @author: liyang
 * @date: 2023/12/26 16:36
 **/
@Component
@FeignClient(value = "CLOUD-PAYMENT-SERVICE")
public interface PaymentFeignService {

    /**
     * @description: 调用 Eureka 8001服务接口
     * @author: liyang
     * @date: 2023/12/26 16:40
     * @return: java.lang.String
     **/
    @GetMapping("/payment/get/lb")
    String getPort();

    /**
     * @description: 超时控制
     * @author: liyang
     * @date: 2023/12/26 17:03
     * @return: java.lang.String
     **/
    @GetMapping("/payment/get/lb/timeout")
    String getPortTimeout();
}
